Release 10.1A: OpenEdge Development:
Progress Dynamics Web Development Guide


WebDataObject (wdo)

WebDataObject (wdo) actions implement client-side data processing.

The following table lists and describes the wdo actions:

Action
Description
wdo_name.add 
Creates a new record with default values.
wdo_name.cancel 
Cancels changes to the current row.
wdo_name.commit 
Assembles all changes ready to be submitted.
wdo_name.copy 
Creates a new record, but copies values from the currently selected record.
wdo_name.delete 
Deletes a record and confirms.
wdo_name.deleterec 
Deletes a record, but does not confirm.
wdo_name.export 
Exports data to Excel.
wdo_name.filter.disable 
Hides filter options.
wdo_name.filter.enable 
Displays filter options.
wdo_name.find 
Assembles search values and submits them.
wdo_name.first  
Calls the first batch of data from the client-side data cache.
wdo_name.field.focus 
Sets focus to the named input field.
wdo_name.field.get 
Gets the data value displayed on the screen.
wdo_name.field.old 
Gets the data value prior to the one displayed on the screen.
wdo_name.handle 
Gets the JS object handle to the wdo_name.
wdo_name.last 
Calls the last batch of data from the client-side data cache.
wdo_name.field.lookup 
Launches the Look Up dialog box for a specified field.
wdo_name.field.mark 
Marks the data field for error or attention. Sets class=”field mark” on inputs.
wdo_name.field.modify 
Switches to modified mode.
wdo_name.next 
Calls the next batch of data from the client-side data cache.
wdo_name.nextbatch 
Fetches a new batch of data from the server.
wdo_name.prev 
Calls the previous batch of data from the client-side data cache.
wdo_name.prevbatch 
Fetches a new batch of data from the server.
wdo_name.reset 
Resets values and stays in update mode.
wdo_name.save 
Saves the current row.
wdo_name.field.set|value 
Sets a data value in named field.
wdo_name.undo 
Undoes all changes. (Applicable when autoconnect is not used.)
wdo_name.update 
Switches to update mode.
wdo_name.view 
Switches to view mode.

Examples

The following example shows multiple actions for the customer WDO:

app.apph.actions( 
 ["customer.zip.disable"          // Disable customer.zip 
  ,"customer.name.enable"        // Enable customer.name 
  ,"customer.country.focus"      //Set focus to customer.country 
]); 

The following example shows how to get the customer state field screen value. If there is no screen value, then the underlying data value is retrieved:

apph.action('customerfullo.state.get'); 

The following example shows how to execute the dynamic lookup for a field:

apph.action('customerfullo.state.lookup'); 

The following example shows how to set the customer state field screen value. Note that the value is separated by the pipe (|) symbol:

apph.action('customerfullo.state.set|NH'); 

The following example shows how to display the customer state field, presumably after it was previously hidden by wdo.field.hide:

apph.action('customerfullo.state.show'); 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095